package start.spring.basic.enums;

/**
 * 
 * ****************************************************************************
 * 业务操作枚举
 *
 * @author(作者)：xuyongyun	
 * @date(创建日期)：2020年4月9日
 ******************************************************************************
 */
public enum ServiceEnum {
	
	DB_INSERT_NULL("S400","保存数量为0，操作失败！"),
	DB_INSERT_ERROR("S401","保存失败！"),
	DB_UPDATE_NULL("S402","更新数量为0，更新失败！"),
	DB_UPDATE_ERROR("S403","更新失败！"),
    DB_DEL_NULL("S404","删除数量为0，操作失败！"),
    DB_DEL_ERROR("S405","删除失败！"),
    REQUEST_INVALID("S406","非法请求！")
    ;

	private String code;
    private String desc;
    
    ServiceEnum(final String code, final String desc){
    	this.code = code;
        this.desc = desc;
    }
    
    public String getCode() {
        return this.code;
    }
    
    public String getDesc() {
        return this.desc;
    }
    
    @Override
	public String toString() {
        return this.desc;
    }
}
